package synchronized面试题.Test01;

public class MyClass {



    public synchronized void  abc(){
        System.out.println("abc begin");
        try {
            Thread.sleep(1000 * 5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("abc over");
    }



    public void def(){
        System.out.println("def begin");

        System.out.println("def over");
    }
}
